<%@ page language="java" pageEncoding="UTF-8"%>

<script type="text/javascript">
function newzonebus()
{
	var a = window.showModalDialog("zone/zone-bus-new.do");
	_bus_refresh();
}

require.config({		    
    'baseUrl': './asset'
});
require(['admin-zone-bus'], function(zonebus) {
	zonebus.init();
});

function _bus_mod(zoneid)
{
	window.showModalDialog("zone/zone-bus-mod.do?zoneid="+zoneid);
	_bus_refresh();
}

function _bus_refresh()
{
	require(['admin-zone-bus'], function(zonebus) {
		zonebus.init();
	});
}

function _bus_del(zoneid)
{
	if(confirm("是否删除"))
	{
		var xmlhttp=new XMLHttpRequest();
		
		xmlhttp.open("GET","zone/zone-bus-del.do?zoneid="+zoneid,true);
		xmlhttp.send();
		alert("删除成功");
	}
	_bus_refresh();
}

</script>


<div class="control-group">
	<table>
		<thead>
			<th width="20%">编号</th>
			<th width="20%">行政区</th>
			<th width="25%">商区</th>
			<th width="15%">状态</th>
			<th width="20%">操作</th>
		</thead>
		<tbody id="zone_bus_list">
			<tr>
				<td width="20%">td1</td>
				<td width="20%">td2</td>
				<td width="25%">td3</td>
				<td width="15%">td4</td>
				<td width="20%">td5</td>
			</tr>
		</tbody>
	</table>
	<button id="new_bus_place" type="button" onclick="newzonebus();" class="btn btn-primary" data-toggle="button">新建</button>
</div>
